package com.cmhk.zmail

class MailSSOController {

    MailSSOService mailSSOService
    def index() {
        def corpid = getGrailsApplication().config.dingtalk.oapi.corpid
        [corpid:corpid]
    }

    def sso(String code){
        def sid = mailSSOService.getSID(code)
        redirect "http://mail.cmhk.com/coremail/xphone/main.jsp?sid=${sid}#module=folder"
    }
}
